<?

$Db = new oracleDb;
$Db->init($_SESSION["ORCL"],
           $_SESSION["OPASS"],
           $_SESSION["SID"],
           _NO_COMMENT);

if($Db->connect()){

  $CFetchers->fetchLstWhs($Db,
                          $SourceDb->fetchValue("srcDbMstWhs"),
                          $nWhs,
                          $lstWarehouse);

  $Db->dc();
}else{

  $Misc->usrDie(_DB_CONN_ERROR);
}

$_POST["memoEnt"] = ($_POST["memoEnt"] != "")?
                     $_POST["memoEnt"] :
                     " ";

$lstModel         = $Misc->retArray($_POST["modelEnt"]);

$propModel        = $GJs->jsOnFocus("GMisc.setYellow2(this);
                                     Ajax.model(1,
                                                this);").

                    $GJs->jsOnBlur ("GMisc.setWhite2(this);");

echo 	//Global misc function of js
      "<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"../javascript/misc.js\"></SCRIPT> \n".
      "<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"../javascript/GMisc.js\"></SCRIPT> \n".

      //This modul misc.js collections of function
      "<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"javascript/misc.js\"></SCRIPT> \n".

      //The ajax connections
      "<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"javascript/ajax.js\"></SCRIPT> \n".

      "<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"../javascript/CalendarPopup.js\"></SCRIPT> \n".
			"<SCRIPT LANGUAGE=\"JavaScript\">\n".
			"var cal      = new CalendarPopup();\n".
			"var gStatus    = Array();\n".
			"    gStatus[0] = false;\n".
			"</SCRIPT> \n".

      $GJs->stopRKey().

			"<link rel=\"stylesheet\" type=\"text/css\" href=\"../myMenu.css\"/>\n".

 			/**
 			* Since this is to prevent default 'enter'
 			*
 			*/
 			"<body >\n".
 			"<form  name='initMe' action=entry.php method=post>\n".

 			/**
 			* Global header
 			*
 			*/
			"<table border='1' class='dedeq' >\n".
			"<tr>\n".

		  "<th> DATE
		    <input type='submit' onClick=\"cal.select(document.forms['initMe'].trDateEnt,'anchor1','dd-MM-yyyy'); return false;\" NAME=\"anchor1\" ID=\"anchor1\" value='Select'></b></th>
		      <td >	".$GHtml->formInput("trDateEnt",
                                      $_POST["trDateEnt"],
                                      $stdStyle . $stdProperties)." </td> \n".

			"</tr>\n".
      "<tr>\n".

      "<th> Warehouse </th><td> ".$GHtml->formDropDown("whsEnt",
                                                       $_POST["whsEnt"],
                                                       $lstWarehouse,
                                                       $Misc->stdProperties())." </td>\n".

      "</tr>\n".
      "<tr>\n".

      "<th> Model     </th><td> ".$GHtml->formDropDown("modelEnt",
                                                       $_POST["modelEnt"],
                                                       $lstModel,
                                                       $propModel)." </td>\n".

      "</tr>\n".
      "</tr>\n".

        "<th> Qty   </th><td> ".$GHtml->formInput("qtyEnt",
                                                  $_POST["qtyEnt"],
                                                  $Misc->stdNumStyle(5).
                                                  $Misc->stdProperties())." </td>\n".

      "</tr>\n".
      "</tr>\n".

        "<th> Memo  </th><td> ".$GHtml->formTextArea("memoEnt",
                                                     $_POST["memoEnt"],
                                                     $Misc->stdProperties())." </td>\n".

      "</tr>\n".
			"</table><br/>\n";
?>